package com.td.module.produce.convert.inputhusbandry;

import com.td.framework.common.pojo.PageResult;
import com.td.module.produce.controller.admin.inputhusbandry.vo.InputHusbandryCreateReqVO;
import com.td.module.produce.controller.admin.inputhusbandry.vo.InputHusbandryExcelVO;
import com.td.module.produce.controller.admin.inputhusbandry.vo.InputHusbandryRespVO;
import com.td.module.produce.controller.admin.inputhusbandry.vo.InputHusbandryUpdateReqVO;
import com.td.module.produce.dal.dataobject.inputhusbandry.InputHusbandryDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 投入品与农事中间 Convert
 *
 * @author 王翔翔
 */
@Mapper
public interface InputHusbandryConvert {

    InputHusbandryConvert INSTANCE = Mappers.getMapper(InputHusbandryConvert.class);

    InputHusbandryDO convert(InputHusbandryCreateReqVO bean);

    InputHusbandryDO convert(InputHusbandryUpdateReqVO bean);

    InputHusbandryRespVO convert(InputHusbandryDO bean);

    List<InputHusbandryRespVO> convertList(List<InputHusbandryDO> list);

    PageResult<InputHusbandryRespVO> convertPage(PageResult<InputHusbandryDO> page);

    List<InputHusbandryExcelVO> convertList02(List<InputHusbandryDO> list);

}
